package com.swinboo.im.endpoint;

import com.huang.entity.result.HStringResult;
import com.huang.entity.result.ResultBuilder;
import com.swinboo.im.api.IMApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Swinboo
 * @date 2022-03-13 11:41
 * @description:
 */
@RestController
@Slf4j
public class IMEndpoint implements IMApi {

    @Value("${server.port}")
    private String port;


    @Override
    public HStringResult<String> test(String str) {

        log.info("收到请求 port:{},param:{}", port, str);
        return ResultBuilder.successHSingle(str);
    }
}
